<?php

header('Content-Type:text/html;charset=utf-8');

$db=new mysqli("localhost","root","","db_bbs");//改库名

if($db->connect_errno)
{
    die("连接失败，原因是：".$db->connect_errno);
}
$db->query('set names utf8');

